System and method for generating cyclic codes for error control in digital communications

ABSTRACT

A K-bit information signal represented by a polynomial U(x) having a degree K−1 is received. The information signal is transformed to form a transformed information signal using a first transform represented by a polynomial G 1 (x) having a degree P. The transformed information signal is represented by a polynomial T(x) having a degree K+P−1. T(x) equals U(x)G 1 (x). An initial cyclic code represented by a polynomial R 1 (x) is generated for the transformed information signal using a second transform represented by a polynomial G 2 (x), where G 2 (x) has high-order leading-zero terms. R 1 (x) equals the remainder obtained by dividing T(x) by G 2 (x). The initial cyclic code is transformed to form a final cyclic code represented by a polynomial R 2 (x) using the first transform. R 2 (x) equals R 1 (x)/G 1 (x).

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application is a continuation-in-part of U.S. application Ser. No. 10/055,910, filed Jan. 28, 2002, which in incorporated by reference herein in its entirety.

FIELD OF THE INVENTION

[0002] The present invention relates to digital communications. More particularly, the present invention relates to cyclic codes for error control in digital communications.

BACKGROUND OF THE INVENTION

[0003] Communicating information via the internet and other digital communications systems has become common in the United States and elsewhere. As the number of people using these communications systems has increased, so has the need for transmitting digital data at ever increasing rates.

[0004] Information transmitted by a digital communications system is typically encoded and transmitted as a series of information code words. Encoding is used to improve the overall performance of a digital communications system. In addition to encoding information prior to transmission, many digital communications systems also calculate groups of bits or code words that are appended to a group of information bits prior to transmission. These bits or code words may be used by a signal decoder of a receiver to detect and/or correct bit errors that can occur during transmission. Cyclic Redundancy Check (CRC) bits are an example of bits appended to a group of information bits prior to transmission. These bits are used by a signal decoder to detect and/or correct bit errors.

[0005] Typically, the bits and/or code words appended to a group of information bits for transmission form part of a cyclic code or a systematic cyclic code. Cyclic codes or more particularly systematic cyclic codes are often generated using a linear feedback shift register (LFSR) designed to implement a particular generator polynomial or a particular parity polynomial. The generation of a systematic cyclic code typically involves three operations. These operations are: (1) multiplying an information signal, U(x), by X^(n-k); (2) dividing the product U(x)·X^(n-k) by a generator polynomial G(x) to obtain a remainder R(x); and (3) adding R(x) to U(x)·X^(n-k).

[0006] Systems and methods for generating cyclic codes exist. These conventional systems and methods, however, have limitations that prevent them from operating at high data rates. In particular, the nested feedback loops of the LFSR used to generate the code words form a speed bottleneck.

[0007] Conventional techniques such as look-ahead, pipelining, and parallelism are often used to overcome speed bottlenecks in digital communications systems. These conventional techniques, however, cannot always be applied successfully to design digital communications systems that will operate at a data rate in excess of 2 Gb/s. Applying these conventional techniques is particularly difficult, for example, when dealing with nested feedback loops such as the feedback loops of a linear feedback shift register used to generate the code words of a cyclic code.

[0008] There are several approaches, for example, that can be used in applying look-ahead in the context of a circuit having nested feedback loops. Many of these approaches will not, however, improve the performance of the digital circuit to which they are applied, and some of these approaches can even degrade circuit performance or improve the performance in a less-than-linear manner with respect to look-ahead factor. This is due at least in part because look-ahead networks may increase the iteration bound of a circuit. In similar fashion, the application of conventional pipelining and parallelism techniques to nested feedback loops in high speed digital communications systems will not necessarily result in improved performance. Applying these conventional techniques leads to fan-out problems in a high speed digital communications system, and thus they cannot be used to overcome speed bottlenecks caused by nested feedback loops in a high speed digital communications system.

[0009] There is a current need for new design techniques and digital logic circuits that can be used to build high-speed digital communication systems. In particular, there is a current need for new systems and methods for generating cyclic codes for error control in digital communication systems that do not create speed bottlenecks and prevent digital communications systems from operating at high data rates.

BRIEF SUMMARY OF THE INVENTION

[0010] Systems and methods for generating cyclic codes for error control in digital communications are presented. Generally speaking, the invention operates by receiving an initial group of information bits to be transmitted. This initial group of information bits is operated on to form a transformed group of bits. The transformed group of bits is further operated on to form an initial codeword. This initial codeword is then transformed to form a codeword of a conventional cyclic code and appended to the initial group of information bits.

[0011] In an embodiment of the invention, a K-bit information signal represented by a polynomial U(x) having a degree K−1 is received. The information signal is operated on to form a transformed information signal using a first transform represented by a polynomial G₁(x) having a degree P. The transformed information signal is represented by a polynomial T(x) having a degree K+P−1.

[0012] T(x) equals U(x)G₁(x). An initial cyclic code represented by a polynomial R₁(x) is generated for the transformed information signal using a second transform represented by a polynomial G₂(x). The second transform, G₂(x), has high-order leading-zero terms. R₁(x) equals the remainder obtained by dividing T(x) by G₂(x). The initial cyclic code is transformed to form a final cyclic code represented by a polynomial R₂(x) using the first transform. R₂(x) equals R₁(x)/G₁(x).

[0013] The invention can be used to generate the code words of conventional cyclic codes and/or systematic cyclic codes. For example, in an embodiment, the final cyclic code generated is a cyclic redundancy check code. In another embodiment, the final cyclic code generated is a Bose-Chaudhuri-Hocquenghem code. In still another embodiment, the final cyclic code generated is a Reed-Solomon code. The invention can also be used, for example, to generate cyclic Hamming codes, cyclic Golay codes, and maximum-length shift-register codes.

[0014] In an embodiment, the transformed information signal is formed by adding the information signal, U(x), to at least one time-shifted copy of the information signal, U(x+t).

[0015] In an embodiment, a first linear feedback shift register is used to form the initial cyclic code and a second linear feedback shift register is used to form the final cyclic code. The final cyclic code is formed by dividing the initial cyclic code, R₁(x), by the first transform, G₁(x).

[0016] In an embodiment, the K-bits of the information signal, U(x), are processed in parallel to generate the polynomial, T(x), the initial cyclic code, R₁(x), and the final codeword bits.

[0017] Further features and advantages of the present invention, as well as the structure and operation of various embodiments of the present invention, are described in detail below with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES

[0018] Embodiments of the present invention are described with reference to the accompanying figures. In the figures, like reference numbers indicate identical or functionally similar elements. Additionally, the leftmost digit of a reference number identifies the figure in which the reference number first appears. The accompanying figures, which are incorporated herein and form part of the specification, illustrate the present invention and, together with the description, further serve to explain the principles of the invention and to enable a person skilled in the relevant art to make and use the invention.

[0019]FIG. 1 is a block diagram of an example linear feedback shift-register circuit for generating a cyclic code.

[0020]FIG. 2 is a block diagram of an example two parallel paths circuit for generating a cyclic code, which is obtained by unfolding the circuit of FIG. 1 by a factor of two.

[0021]FIG. 3 is a block diagram of an example three parallel paths circuit, which is obtained by unfolding the circuit of FIG. 1 by a factor of three.

[0022]FIG. 4 is a block diagram of an example circuit that is obtained by adding an additional time delay to the innermost nested loop of the circuit of FIG. 1 in accordance with the invention.

[0023]FIG. 5 is a block diagram of an example three parallel paths circuit, which is obtained by unfolding the circuit of FIG. 4 by a factor of three in accordance with the invention.

[0024]FIG. 6A is a block diagram of an example encoder according to the invention for generating a cyclic code.

[0025]FIG. 6B is a block diagram of an example three parallel paths circuit according to the invention, which is obtained by unfolding the circuit of FIG. 6A by a factor of three.

[0026]FIG. 7 is a block diagram of an example encoder according to the invention for generating a cyclic code.

[0027]FIG. 8 is a block diagram of an example linear feedback shift-register circuit for generating a cyclic code.

[0028]FIG. 9 is a block diagram of an example linear feedback shift-register circuit for generating a cyclic code, which is obtained by retiming the circuit of FIG. 4.

[0029]FIG. 10 is a block diagram of an example three parallel paths circuit, which is obtained by unfolding the circuit of FIG. 9 by a factor of three in accordance with the invention.

[0030]FIG. 11 is a flowchart of the steps of a method according to the invention for generating cyclic codes.

DETAILED DESCRIPTION OF THE INVENTION

[0031] Modem digital communications systems contain circuits that generate cyclic codes. Generally speaking, cyclic codes are code words (groups of bits), interspersed between groups of information signal bits, that possess a large amount of structure. These code words are used, for example, to decode bits of a received digital information signal and correct transmission errors. Example cyclic codes are Cyclic Redundancy Check (CRC) codes, Bose-Chaudhuri-Hocquenghem (BCH) codes, the Reed-Solomon code, Cyclic Hamming codes, the Cyclic Golay code, and Maximum-Length Shift Register codes.

[0032] In the description that follows, example circuits that generate cyclic codes according to the invention and an example method for generating cyclic codes according to the invention are described.

[0033] Example Circuits for Generating Cyclic Codes According to the Invention

[0034]FIG. 1 is a block diagram of a conventional circuit 100 that is used to generate CRC bits. In particular, circuit 100 generates a (7, 4) cyclic code. A (7, 4) cyclic code is a code that appends a three-bit codeword to four information bits thereby forming a group of seven total bits. Circuit 100 is based on the generator polynomial G(x)=1+X+X³. G(x) has one high-order leading-zero term (i.e., the X² term is equal to zero).

[0035] Circuit 100 includes a switch 102 and a linear feedback shift register (LFSR) 104. Switch 102 has three ports (a, b, and c). Switch 102 can be any conventional electronic switch such as, for example, any conventional type of field effect transistors (FET). LFSR 104 has three delay devices 106 a, 106 b, and 106 c. LFSR 104 also has two adders 108 a and 108 b. Delay devices 106 can be any conventional type of delay device such as, for example, D-flipflops. Adders 108 represent modulo-2 addition and are implemented as exclusive-or circuits. LFSR 104 has two feedback loops. The innermost feedback loop is a nested feedback loop. This innermost nested feedback loop is formed by adders 108 a and 108 b, delay devices 106 b and 106 a, and the conductors coupling these devices together.

[0036] Circuit 100 has two operating modes. In a first operating mode, a group of CRC bits or a CRC codeword (R₃, R₂, R₁) is generated by LFSR 104, wherein R₁ is output from delay device 106 a, R₂ is output from delay device 106 b, and R₃ is output from delay device 106 c. In a second operation mode, the generated CRC codeword is shifted out of LFSR 104 and appended to a group of information bits.

[0037] In the first operating mode of circuit 100, the a-port of switch 102 is electrically coupled to the b-port. In this first mode, bits of a digital information signal are input to the a-port of switch 102. During each clock cycle of circuit 100, a bit of the digital information signal is output at the b-port of switch 102. This same bit is also provided to adder 108 a. The bit provided to adder 108 a is added to an output of delay device 106 a to form a resultant bit. This resultant bit is then provided as an input to adder 108 b and to delay device 106 c of LFSR 104.

[0038] To better understand the first operating mode of circuit 100, consider the following example wherein LFSR 104 is used to generate a CRC codeword for a group of four information signal bits (1, 1, 0, 1).

[0039] Initially, each of the outputs of the delay devices 106 is a 0 bit (i.e., the codeword (R₃, R₂, R₁) of LFSR 104 is (0, 0, 0) before the first of four information signal bits (1, 1, 0, 1) is provided to circuit 100). During a first clock cycle of circuit 100, the first bit of the four bits (1) is provided to the a-port of switch 102 and to adder 108 a. The 0 output bit of delay device 106 a is added to this first bit (i.e., 1), using modulus-2 addition, to form an output bit equal to one (0+1=1). This output bit (1) is then provided as an input to both delay device 106 c and adder 108 b. As a result, the output of adder 108 b becomes 1 (0+1=1). At the start of the next clock cycle, clock cycle two, the outputs of each of the delay devices 106 are changed to that of their inputs, and the codeword (R₃, R₂, R₁) of LFSR 104 is changed from (0, 0, 0) to (1, 1, 0).

[0040] During the second clock cycle, the second bit of the four bits (1) of the input signal is provided to the a-port of switch 102 and to adder 108 a. The 0 output bit of delay device 106 a is now added to the second bit of the information bits (i.e., 1), using modulus-2 addition, to form a new output bit equal to one (0+1=1). This output bit (1) is then provided as an input to both delay device 106 c and adder 108 b. As a result, the output of adder 106 b now becomes 0 (1+1=0). At the start of the next clock cycle, clock cycle three, the outputs of each of the delay devices 106 is again changed to that of their inputs, and the codeword (R₃, R₂, R₁) of LFSR 104 is changed from (1, 1, 0) to (1, 0, 1).

[0041] In a manner similar to that described above, the codeword (R₃, R₂, R₁) of LFSR 104 is changed from (1, 0, 1) to (1, 0, 0) at the start of the fourth clock cycle and from (1, 0, 0) to (1, 0, 0) at the start of the fifth clock cycle. Thus, during the transmission of the four information bits (1, 1, 0, 1), circuit 100 has generated a three-bit CRC codeword (1, 0, 0). This is summarized below in Table 1. TABLE 1 Output Bits CLK Delay Device Delay Device Delay Device Cycle Input Bit 106c 106b 106a 1 1 0 0 0 2 1 1 1 0 3 0 1 0 1 4 1 1 0 0 1 0 0

[0042] The settling time of circuit 100 is equal to the settling time of two adders 108 (i.e., 2T_(adder)). This can be seen by noting that the output of adder 108 b is dependent on the output of adder 108 a. As illustrated by the circuit of FIG. 3, conventional unfolding techniques can increase this settling time of parallel CRC circuits since the critical paths of the unfolded circuits are typically longer than the sequential ones.

[0043] In the second operating mode of circuit 100, the c-port rather than the a-port of switch 102 is electrically coupled to the b-port. In this second operating mode, during each clock cycle of circuit 100, a bit of a codeword generated by LFSR 104 is output at the b-port of switch 102. Thus, by switching between the two modes of operation, circuit 100 can be used to both generate CRC code words and append these code words to groups of bits of an information signal. For example, by switching to the second operating mode, the codeword (1, 0, 0) calculated during the transmission of the four information bits (1, 1, 0, 1) can be appended to the four information bits to form seven transmission bits (1, 1, 0, 1, 1, 0, 0).

[0044] As shown in FIG. 1, LFSR 104 includes two feedback loops. These feedack loops limit the rate at which data can be processed by circuit 100. Circuit 100 cannot be clocked any faster than the settling time of the slowest feedback loop.

[0045] Unfolding is a technique for increasing the processing speed of certain digital circuits. Unfolding involves the formation of parallel processing paths. However, as described herein, conventional unfolding techniques can cause fan-out problems and increased circuit settling times. For this reason, conventional unfolding techniques cannot be used to design high speed digital communication systems, particularly systems intended to operate at a data rate in excess of 2 Gb/s.

[0046]FIG. 2 is a block diagram of a two parallel paths circuit 200 obtained by unfolding the LFSR 104 of circuit 100. As shown in FIG. 2, circuit 200 has four adders 202 a, 202 b, 202 c, and 202 d and three delay devices 204 a, 204 b, and 204 c. Circuit 200 can be used in lieu of LFSR 104 of circuit 100 to generate the code words of a (7, 4) CRC code.

[0047] Circuit 200 generates a group of CRC bits or a CRC codeword (R₃, R₂, R₁), wherein R₁ is output from delay device 204 a, R₂ is output from delay device 204 b, and R₃ is output from delay device 204 c. The iteration bound (settling time) of circuit 200 is equal to the settling time of two adders 202 (i.e., 2T_(adder)). This is due, for example, to the fact that the output of adder 202 b is dependent on the output of adder 202 a. Circuit 200 operates in a manner similar to that of circuit 100 except that two information bits are provided to circuit 200, rather than the one information of circuit 100, during each clock cycle of circuit 200.

[0048] In order to better understand the operation of circuit 200, consider the following example wherein circuit 200 is used to generate a CRC codeword for a group of four information signal bits (1, 1, 0, 1). These are the same four information signal bits used above to illustrate the operation of LFSR 104.

[0049] Initially, each of the outputs of the delay devices 204 is a 0 bit (i.e., the codeword (R₃, R₂, R₁) of circuit 200 is (0,0, 0) before the first of four information signal bits (1, 1, 0, 1) is provided to circuit 200). During a first clock cycle of circuit 200, the first bit of the four bits (1) is provided to adder 202 a and the second bit of the four bits (1) is provided to adder 202 d. The input to adder 202 a is referred to as input B₀. The 0 output bit of delay device 204 a is added to this first information signal bit (i.e., 1), using modulus-2 addition, to form an output bit equal to one (0+1=1). This output bit (1) is then provided as an input to both adder 202 b and adder 202 c. As a result, the output of adder 202 b becomes 1 (0+1=1).

[0050] During this same clock period, the second bit of the information signal (1) is provided as an input to adder 202 d. This input to circuit 200 is referred to as input B₁. The output of delay device 204 b is then added to this second information signal bit (i.e., 1) to form an output bit equal to 1 (0+1=1). This output bit is provided as an input bit to adder 202 c and delay device 204 c. As a result, adder 202 c forms an output bit equal to 0 (1+1=0). At the start of the next clock cycle, clock cycle two, the outputs of each of the delay devices 204 are changed to that of their inputs, and the codeword (R₃, R₂, R₁) of circuit 200 is changed from (0, 0, 0) to (1, 0, 1).

[0051] During the second clock cycle of circuit 200, the third bit of the four information bits (0) is provided to adder 202 a. The 1 output bit of delay device 204 a is added to this third information signal bit (i.e., 3) to form an output bit equal to one (1+0=1). This output bit (1) is then provided as an input to both adder 202 b and adder 202 c. As a result, the output of adder 202 b becomes 0 (1+1=0). During this same clock period, the fourth bit of the information signal (1) is provided as an input to adder 202 d. The output of delay device 204 b is then added to this fourth information signal bit (i.e., 1) to form an output bit equal to 1 (0+1=1). This output bit is provided as an input bit to adder 202 c and delay device 204 c. As a result, adder 202 c forms an output bit equal to 0 (1+1=0). At the start of the next clock cycle, clock cycle three, the outputs of each of the delay devices 204 is changed to that of their inputs, and the codeword (R₃, R₂, R₁) of circuit 200 is changed from (1, 0, 1) to (1, 0, 0). This is summarized below in Table 2. TABLE 2 Output Bits Delay Delay Delay CLK Input Bits Device Device Device Cycle Input B₀ Input B₁ 204c 204b 204a 1 1 1 0 0 0 2 0 1 1 0 1 1 0 0

[0052] As can be seen from the above example, circuit 200 generates the same codeword in two clock cycles as LFSR 104 generates in four clock cycles. The CRC code words generated by circuit 200 are appended to four information signal bits for transmission in a manner similar to that described above with regard to circuit 100.

[0053] Theoretically, the circuit of FIG. 1 can be further unfolded in an attempt to further reduce processing time. As illustrated by the circuit of FIG. 3, however, further unfolding using conventional unfolding techniques can lead to increased circuit settling times and/or an inability to generate desired results.

[0054]FIG. 3 is a block diagram of a three parallel paths circuit 300 obtained by unfolding the LFSR 104 of circuit 100. As shown in FIG. 3, circuit 300 has six adders 302 a, 302 b, 302 c, 302 d, 302 e, and 302 f and three delay devices 304 a, 304 b, and 304 c. Circuit 300 operates in a manner similar to that described above for circuit 200, and generates the codeword in two cycles. However, due to the increased unfolding, the setting time of the circuit is now equal to the settling time of four adders 302 (i.e., 4T_(adder)), which is double the setting time of circuit 200. This can be seen by noting that the output of adder 302 c is dependent on the outputs of adders 302 a, 302 f, and 302 e. This limitation of conventional unfolding, however, is overcome by the present invention as illustrated by the circuits of FIG. 4 and FIG. 5.

[0055]FIG. 4 is a block diagram of a circuit 400 obtained by adding an additional time delay to the innermost nested feedback loop of the circuit 100 in accordance with the invention. Adding one or more additional time delays to the innermost nested feedback loop of a circuit prior to unfolding is a technique of the present invention. Typically, the number of time delays added to the innermost nested feedback loop of a circuit is selected to make the total number of time delays in the innermost nested feedback loop divisible by a desired unfolding factor. For example, a circuit that is to be unfolded by a factor of three would typically have 3, 6, 9, etc., time delays. This technique of the invention is further described below. Adding one or more additional delays to the innermost nested feedback loop of a circuit prior to circuit unfolding allows the present invention to overcome the increased circuit settling time limitations associated with conventional unfolding techniques.

[0056] Circuit 400 includes a switch 402 and a linear feedback shift register (LFSR) 404. Switch 402 has three ports (a, b, and c). LFSR 404 has four delay devices 406 a, 406 b, 406 c, and 406 d. LFSR 404 also has two adders 408 a and 408 b. The innermost nested feedback loop of LFSR 404 is formed by adder 408 a, adder 408 b, delay devices 406 c, 406 b and 406 a, and the conductors coupling these devices together.

[0057] Circuit 400 operates in a manner similar to that described above for circuit 100. Circuit 400 can be represented by a polynomial P(x)=1+X+X⁴. P(x) has two high-order leading-zero term (i.e., the X² and the X³ terms are equal to zero).

[0058] The settling time of circuit 400 before unfolding is equal to the settling time of two adders 408 (i.e., 2T_(adder)). This can be seen by noting that the output of adder 408 b is dependent on the output of adder 408 a.

[0059]FIG. 5 is a block diagram of a three parallel paths circuit 500 obtained by unfolding the LFSR 404 of circuit 400 in accordance with the invention. As shown in FIG. 5, circuit 500 has six adders 502 a, 502 b, 502 c, 502 d, 502 e, and 502 f and four delay devices 504 a, 504 b, 504 c, and 504 d.

[0060] Circuit 500 is similar to that described above for circuit 300. However, the settling time of circuit 500 is equal to the settling time of two adders 502 (i.e., 2T_(adder)), which is the same as the setting time of circuit 400. Thus, as illustrated by FIG. 5, the unfolding technique of the invention overcomes the limitations of conventional unfolding techniques.

[0061] The unfolding technique of the invention is not limited by the example circuits illustrated herein. For example, two additional time delays can be added to the innermost nested feedback loop of LFSR 104 such that each delay device 106 a and 106 b is effectively a 2T delay device. In this instance, if LFSR 104 is unfolded to form two parallel paths, each of the delay devices 204 a and 204 b in circuit 200 would become a 2T delay device. In embodiments of the invention additional time delays are added to the innermost nested feedback loop of LFSR 104 to permit increased unfolding in accordance with the invention and thereby increase the rate at which cyclic code words can be generated.

[0062] As illustrated by FIG. 6A, FIG. 6B, and FIG. 7, the techniques of the present invention described above are used to form encoders for generating cyclic codes that are capable of operating at high data rates.

[0063]FIG. 6A is a block diagram of an example encoder 600 according to the invention for generating the code words of a (7, 4) CRC code. Encoder 600 includes a first transform circuit 602, a LFSR 604, a second transform circuit 606 (which is another LFSR circuit), and a switch 608. Encoder 600 is different from circuit 100 in that it includes two transform circuits in addition to the LFSR 604, and LFSR 604 implements a different generator polynomial than LFSR 104. As described above, LFSR 104 implements the generator polynomial G(x) equals (1+X+X³). LFSR 604, however, implements the generator polynomial G₂(x) equals (1+X+X²+X⁵). G₂(x) has two high-order leading-zero terms (i.e., the X³ and X⁴ terms are equal to zero). The generator polynomial G₂(x) is obtained by multiplying the generator polynomial G(x) equals (1+X+X³) by the polynomial G₁(x) equals (1+X²).

[0064] As will be understood by a person skilled in the relevant arts given the description herein, transform circuit 602 adds, using modulus-2 addition, the bits of a digital input signal U(x) to a copy of the digital input signal U(x) delayed by two time delays. This is equivalent to multiplying the bits of the digital input signal U(x) by the polynomial G₁(x) equals (1+X²). Transform circuit 602 includes an adder 612 a and two delay devices 610 a and 610 b. The output of transform circuit 602 is a transformed information signal, T(x).

[0065] The devices of LFSR 604 operate in a manner similar to the devices described above with regard to LFSR 104. LFSR 604 implements a division operation and generates remained bits R₁(x) at the output of a delay device 610 c. These remainder bits are used to form a (7, 4) CRC code. LFSR 604 includes, in addition to delay device 610 c, delay devices 610 d, 610 e, 610 f, and 610 g, and three adders 612 b, 612 c, and 612 d. LFSR 604 divides the bits of the transformed information signal T(x) by G₂(x), wherein G₂(x) equals G(x)G₁(x). In embodiments of the invention, LFSR 604 is unfolded according to the invention to form three parallel processing paths and thereby increase the rate at which encoder 600 processes data.

[0066] Transform circuit 606 transforms the remainder bits generated by LFSR 604 into the (7, 4) CRC code words generated by circuit 100. Transform circuit 606 adds the output signal generated at the output of delay device 610 c by a delayed copy of this output signal. The delayed copy of the output signal is delayed by two time delays. Transform circuit 606 is equivalent to computing the quotient obtained by dividing the remainder bits generated by LFSR 604 by the polynomial G₁(x) equals (1+X²).

[0067] Switch 608 operates similarly to switch 102 of circuit 100. Switch 608 can be any conventional electronic switch such as, for example, any conventional type of field effect transistors (FET).

[0068]FIG. 6B is a block diagram of an example three parallel paths circuit 650 according to the invention. Circuit 650 is obtained by unfolding circuit 600 by a factor of three.

[0069] As shown in FIG. 6B, first transform circuit 602, LFSR 604, and second transform circuit 606 (which is another LFSR circuit) have each been unfolded in accordance with the invention. The unfolded first transform circuit 602 includes two delay devices 610 and three adders 612. The unfolded LFSR 604 includes five delay devices 610 and nine adders 612. The unfolded second transform circuit 606 includes two delay devices 610 and three adders 612.

[0070]FIG. 7 illustrates a simplified schematic of a second encoder 700 for generating a cyclic code according to an embodiment of the invention. Encoder 700 includes a transform circuit 702, a first LFSR 704, a second LFSR 706 and two modulo-2 adders 708 a and 708 b. The purpose of transform circuit 702 is to transform the bits of an information signal U(x) into the bits of a transformed information signal T(x). LFSR 704 implements a generator polynomial G₂(x) formed by multiplying a conventional generator polynomial G(x) for implementing a particular cyclic code by a polynomial G₁(x). As described herein, the polynomial G₁(x) is selected to increase the number of delays formed in the innermost nested feedback loop of LFSR 704. As described above, LFSR 704 may be unfolded/reformulated in accordance with the invention so as to avoid increasing the settling time (loop bound) of the unfolded/reformulated circuit. LFSR 706 implements a small degree polynomial used to transform the remained bits (code words) generated by LFSR 704 into the code words of a desired cyclic code (i.e., the code words that would typically be generated by the particular generator polynomial G(x) that was multiplied by the polynomial G₁(x)). How to implement encoder 700 will become apparent to persons skilled in the relevant arts given the description of the invention herein.

[0071]FIG. 8 is a block diagram of a second example LFSR circuit 800 for generating a cyclic code. This circuit can be derived from a circuit similar to circuit 100 (see FIG. 1) by retiming. Circuit 800 is used to generate the code words of a BCH code. As described below, the operation of circuit 800 is similar to the operation of circuit 100.

[0072]FIG. 8 is provided as a second example circuit that can serve as a basis for making an encoder according to the invention. Other circuits for generating cyclic codes that can serve as a basis for making an encoder according to the invention will be known to persons skilled in the relevant arts given the description herein.

[0073] As shown in FIG. 8, circuit 800 includes three switches 802 a, 802 b and 802 c, and an LFSR 804. LFSR 804 includes several delay devices 806 and several adders 808. Switch 802 a has two ports (a and b). Switches 802 b and 802 c have three ports (a, b, and c). Switches 802 can be any conventional electronic switches such as, for example, any conventional type of field effect transistors (FET). Delay devices 806 can be any conventional type of delay devices such as, for example, D-flipflops. Similarly, adders 808 can be any conventional type of modulo-2 adder circuits. As can be seen in FIG. 8, LFSR 804 has several nested feedback loops. Delay device 806 a forms a part of all of the nested feedback loops of LFSR 804.

[0074] Similar to circuit 100, circuit 800 has two operating modes. In a first operating mode, a BCH codeword is generated by LFSR 804. In a second operating mode, the generated BCH codeword is shifted out of LFSR 804.

[0075] In the first operating mode of circuit 800, the a-ports of switches 802 a, 802 b, and 802 c are electrically coupled to the b-ports. As used herein, two devices or nodes of a circuit are electrically coupled if a signal at one device or node of the circuit can be sensed at another device or node of the circuit. The sensed signal may be stored, filtered, and/or amplified, for example, before being sensed at another device or node of the circuit. In this first mode, bits of a digital information signal are input to the a-port of switch 802 a. During each clock cycle of circuit 800, a bit of the digital information signal is output at the b-port of switch 802 b. This same bit is also provided to adder 808 a. The bit provided to adder 808 a is added to an output of delay device 806 a to form a resultant bit. This resultant bit is then provided as an input to each of the other adders 808 (e.g., adders 808 b, 808 c, and 808 d) of LFSR 804 and to delay device 806 d of LFSR 804. How LFSR loop 804 operates to generate a BCH codeword given a group of information signal bits would be known to a person skilled in the relevant arts given the description herein. The bits of the generated codeword are the outputs of each of the delay devices 806.

[0076] In the second operating mode of circuit 800, the a-ports of switches 802 a, 802 b, and 802 c are not electrically coupled to the b-ports. In this second mode, the c-port of switch 802 b is electrically coupled to the b-port of switch 802 b. Since the a-port of switch 802 c is not electrically coupled to the b-port, the output of adder 808 a is not fed back to any adder 808 or any delay device 806 of LFSR 804. In this second mode, during each clock cycle of circuit 800, a bit of the generated codeword is output at the b-port of switch 802 b. By switching between the two modes of operation, circuit 800 generates code words and appends these code words to groups of bits of an information signal.

[0077] As described herein, the invention can be applied to circuit 800 to form a BCH encoder in a manner similar to that described above for circuit 100. A person skilled in the relevant arts given the description herein will be able to apply the invention to circuit 800 in order to make and use a BCH encoder according to the invention. In an embodiment, a BCH encoder according to the invention has the form of encoder 700 described above.

[0078]FIG. 9 and FIG. 10 illustrate how to apply the invention to retimed circuits. FIG. 9 illustrates an example embodiment of a LFSR circuit 900 that is equivalent to circuit 400 of FIG. 4. Circuit 900 is obtained by retiming circuit 400. FIG. 10 illustrates an example circuit 1000 according to the invention. Circuit 1000 is obtained by unfolding circuit 900 by a factor of three in accordance with the invention. Circuit 1000 illustrates how to apply the invention to retimed circuits such as, for example, the CRC circuits illustrated by FIG. 1 and FIG. 4.

[0079] Example Method for Generating Cyclic Codes According to the Invention

[0080] In this section, an example method for generating cyclic codes according to the invention is described. This method can be implemented using the techniques and circuit embodiments of the invention described above. The example method is not limited, however, to being implemented using only the circuits described herein.

[0081]FIG. 11 is a flowchart of the steps of a method 1100 for generating cyclic codes for error control in digital communications. In the example of FIG. 11, method 1100 includes four steps 1102, 1104, 1106, and 1108. Method 1100 starts with step 1102.

[0082] In step 1102, a K-bit information signal is received. This information signal is represented by a polynomial U(x) having a degree K−1.

[0083] In step 1104, the information signal U(x) is transformed to form a transformed information signal. The information signal U(x) is transformed using a first transform represented by a polynomial G₁(x) having a degree P. P is greater than zero. The transformed information signal is represented by a polynomial T(x) having a degree K+P−1. T(x) equals U(x)G₁(x).

[0084] In an embodiment, step 1104 involves adding the information signal U(x), using modulo-2 addition, to at least one time-shifted copy of the information signal to form the transformed information signal T(x).

[0085] In an embodiment, step 1104 can be implemented, for example, using the transform circuit 702 of circuit 700.

[0086] In step 1106, an initial cyclic code is generated for the transformed information signal T(x) using a second transform represented by a polynomial G₂(x). This initial cyclic code is represented by a polynomial R₁(x). G₂(x) has high-order leading-zero terms. R₁(x) equals the remainder obtained by dividing T(x) by G₂(x).

[0087] In one embodiment, the K bits of the information signal U(x) are divided into at least two subsets of bits. These at least two subsets of bits are processed in parallel to generate the initial cyclic code R₁(x).

[0088] In an embodiment, step 1106 can be implemented, for example, using the LFSR 704 of circuit 700. As described herein, in embodiments, circuit 700 is unfolded in accordance with the invention to increase the rate at which data is processed.

[0089] In step 1108, the initial cyclic code R₁(x) is transformed to form a final cyclic code represented by a polynomial R₂(x). The initial cyclic code R₁(x) is transformed using the first transform G₁(x). R₂(x) equals R₁(x)/G₁(x).

[0090] In one embodiment, the final cyclic code formed is a cyclic redundancy check code. In another embodiment, the final cyclic code formed is a Bose-Chaudhuri-Hocquenghem code. In a further embodiment, the final cyclic code formed is a Reed-Solomon code. Other cyclic codes are also possible in accordance with the invention.

[0091] In an embodiment, step 1108 can be implemented, for example, using the LFSR 706 of circuit 700.

[0092] Given the description herein, a person skilled in the relevant arts will understand how to implement each of the steps of method 1100 to generate a desired cyclic code capable of operating as a part of a high speed digital communications system.

Conclusion

[0093] Various embodiments of the present invention have been described above. It should be understood that these embodiments have been presented by way of example only, and not limitation. It will be understood by those skilled in the relevant arts that various changes in form and details of the embodiments described above may be made without departing from the spirit and scope of the present invention as defined in the claims. Thus, the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents. 

What is claimed is:
 1. A system for generating cyclic codes for error control in digital communications, comprising: a circuit that receives a K-bit information signal represented by a polynomial U(x) having a degree K−1; a circuit that transforms the information signal to form a transformed information signal, using a first transform represented by a polynomial G₁(x) having a degree P, wherein P is greater than zero, the transformed information signal is represented by a polynomial T(x) having a degree K+P−1, and T(x) equals U(x)G₁(x); a circuit that generates an initial cyclic code represented by a polynomial R₁(x) for the transformed information signal using a second transform represented by a polynomial G₂(x), wherein R₁(x) equals a remainder obtained by dividing T(x) by G₂(x); and a circuit that transforms the initial cyclic code to form a final cyclic code represented by a polynomial R₂(x) using the first transform, wherein R₂(x) equals R₁(x)/G₁(x).
 2. The system of claim 1, wherein said circuit that transforms the information signal to form the transformed information signal includes digital logic that adds the information signal to at least one time-shifted copy of the information signal.
 3. The system of claim 1, wherein said circuit that generates the initial cyclic code comprises a linear feedback shift register.
 4. The system of claim 1, wherein said circuit that transforms the initial cyclic code comprises a linear feedback shift register.
 5. The system of claim 1, wherein the K bits of the information signal are processed in parallel to generate the initial cyclic code.
 6. The system of claim 1, wherein the final cyclic code is a cyclic redundancy check code.
 7. The system of claim 1, wherein the final cyclic code is a Bose-Chaudhuri-Hocquenghem code.
 8. The system of claim 1, wherein the final cyclic code is a Reed-Solomon code.
 9. A system for generating cyclic codes for error control in digital communications, comprising: means for receiving a K-bit information signal represented by a polynomial U(x) having a degree K−1; means for transforming the information signal to form a transformed information signal, using a first transform represented by a polynomial G₁(x) having a degree P, wherein P is greater than zero, the transformed information signal is represented by a polynomial T(x) having a degree K+P−1, and T(x) equals U(x)G₁(x); means for generating an initial cyclic code represented by a polynomial R₁(x) for the transformed information signal using a second transform represented by a polynomial G₂(x), wherein R₁(x) equals a remainder obtained by dividing T(x) by G₂(x); and means for transforming the initial cyclic code to form a final cyclic code represented by a polynomial R₂(x) using the first transform, wherein R₂(x) equals R₁(x)/G₁(x).
 10. The system of claim 9, wherein said means for transforming the information signal to form the transformed information signal includes means for adding the information signal to at least one time-shifted copy of the information signal.
 11. The system of claim 9, wherein said means for generating the initial cyclic code comprises a linear feedback shift register.
 12. The system of claim 9, wherein said means for transforming the initial cyclic code comprises a linear feedback shift register.
 13. The system of claim 9, further comprising: means for processing the K bits of the information signal in parallel to generate the initial cyclic code.
 14. The system of claim 9, wherein the final cyclic code is a cyclic redundancy check code.
 15. The system of claim 9, wherein the final cyclic code is a Bose-Chaudhuri-Hocquenghem code.
 16. The system of claim 9, wherein the final cyclic code is a Reed-Solomon code.
 17. A method for generating cyclic codes for error control in digital communications, comprising: (1) receiving a K-bit information signal represented by a polynomial U(x) having a degree K−1; (2) transforming the information signal to form a transformed information signal, using a first transform represented by a polynomial G₁(x) having a degree P, wherein P is greater than zero, the transformed information signal is represented by a polynomial T(x) having a degree K+P−1, and T(x) equals U(x)G₁(x); (3) generating an initial cyclic code represented by a polynomial R₁(x) for the transformed information signal using a second transform represented by a polynomial G₂(x), wherein R₁(x) equals a remainder obtained by dividing T(x) by G₂(x); and (4) transforming the initial cyclic code to form a final cyclic code represented by a polynomial R₂(x) using the first transform, wherein R₂(x) equals R₁(x)/G₁(x).
 18. The method of claim 17, wherein step (2) comprises: adding the information signal to at least one time-shifted copy of the information signal to form the transformed information signal.
 19. The method of claim 17, wherein step (3) comprises: dividing the K bits of the information signal into at least two subsets of bits; and processing the at least two subsets of bits in parallel to generate the initial cyclic code.
 20. The method of claim 17, wherein step (4) comprises: forming a cyclic redundancy check code.
 21. The method of claim 17, wherein step (4) comprises: forming a Bose-Chaudhuri-Hocquenghem code.
 22. The method of claim 17, wherein step (4) comprises: forming a Reed-Solomon code. 